<admintpl file="header" />
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('SupervisionSideReport/index')}">旁站记录管理</a></li>
            <if condition="$level eq '0' or $level eq '3' "><li><a href="{:U('SupervisionSideReport/add')}">新增旁站记录</a></li></if>
            <li class="active"><a href="{:U('SupervisionSideReport/view')}">查看旁站记录</a></li>
        </ul>
        <form method="post" class="form-horizontal js-ajax-form" method="post" action="{:U('SupervisionSideReport/edit_post')}">
            <section class="tab-pane active fade in" id="access">
		        <div class="row">
		            <div class="col-xs-12 col-md-12 col-lg-12">
		                <div class="panel panel-info">
		                    <div class="panel-body">
	                            <div class="row tg-header">
	                                <div class="col-md-12 text-center">
	                                    <h3>旁站记录</h3>
	                                    <hr />
	                                </div>
	                                <div class="col-md-12">
	                                    <p class="tg-to"><label>工程名称:</label><input type="text" class="input-xt input-deptname"  disabled value="{$job_name}" readonly/></p>

	                                    <p class="pull-right tg-serialnum"><label>编号:</label><input class="input-xt" name="code" value="{$data.code}" readonly/></p>
	                                </div>
	                            </div>

	                            <table class="table table-bordered">
	                                <tr>
	                                    <td style="border-right:none !important;">
	                                        <label>旁站的关键部位、关键工序:</label>
	                                    </td>
	                                    <td>
	                                        <input type="text" class="input-xt input-deptname" name="side_position" value="{$data.side_position}" style="border:none !important;" readonly/>
	                                    </td>
	                                    <td style="border-right:none !important;">
	                                        <label>施工单位:</label>
	                                    </td>
	                                    <td>
	                                        <input type="text" class="input-xt input-deptname" 
	                                        name="executing_department" value="{$data.executing_department}" style="border:none !important;" readonly/>
	                                    </td>

	                                </tr>
	                                <tr>
	                                    <td>
	                                        <label>旁站开始时间</label>

	                                    </td>
	                                    <td>
	                                    	<input type="text" name="side_begin_time" id="from" class="input-xt input-deptname WdatePicker" value="{$data.side_begin_time|substr=0,16}" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'to\')}',dateFmt:'yyyy-MM-dd HH:mm'})"
                                             style="width:200px;"  readonly/>
	                                    </td>
	                                    <td>
	                                        <label>旁站结束时间</label>

	                                    </td>
	                                    <td>
	                                        <input type="text" name="side_end_time" id="to" class="input-xt input-deptname" value="{$data.side_end_time|substr=0,16}" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'from\')}',dateFmt:'yyyy-MM-dd HH:mm'})"
                                             style="width:200px;" readonly/>
	                                    </td>
	                                </tr>
	                                <tr>
	                                    <td colspan="4">
	                                        <label>旁站的关键部位、关键工序施工情况：</label>
	                                        <textarea style="height:200px; width:100%" name="side_position_construction_status" readonly>{$data.side_position_construction_status}</textarea>
	                                    </td>
	                                </tr>
	                                <tr>
	                                    <td colspan="4">
	                                        <label>发现的问题及处理情况：</label>
	                                        <textarea style="height:200px; width:100%" name="problem_and_solution" readonly>{$data.problem_and_solution}</textarea>
	                                    </td>
	                                </tr>
	                                <tr>
	                                	<td colspan="4">
	                                        <p>
                                                <lable>附件：</lable>
                                            </p>
	                                        <foreach name="results" item="vo">
	                                            <div class='controls' style='margin-top:10px;margin-left:20px'>
	                                                <a target="_blank" path="{$vo.file_path}" name="{$vo.file_name}" class="fileDownload" data-type="{$vo.file_type}"><label>{$vo.file_name}</label></a>
	                                            </div>
	                                        </foreach>
	                                    	<div class="signature">
                                                <p>
                                                    <label>旁站监理人员（签字）</label>
                                                </p>
                                            </div>
                                            <p class="signature-date">
                                                <span>{$data.publish_time|substr=0,4}&nbsp;年&nbsp;{$data.publish_time|substr=5,2}月&nbsp;{$data.publish_time|substr=8,2}日</span>
                                            </p>
	                                    </td>
	                                </tr> 
	                            </table>
	                            <div class="form-actions">
					                <a class="btn btn-default" href="{:U('SupervisionSideReport/index')}">{:L('BACK')}</a>
					            </div>
		                    </div>
		                </div>
		            </div>

		        </div>
    		</section>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>